<template>
  <div class="teachers">
    <div class="teacher-item" v-for="v in tableData" :key="v.id">
      <div class="img-box">
        <img class="head-img" :src="headImg(v.sysUser)" alt="" />
      </div>
      <div class="txt-box">{{ v.userName }}</div>
    </div>
  </div>
</template>
<script>
import setInfo from '@/mixins/setInfo'
export default {
  mixins: [setInfo],
  data() {
    return {
      tableData: [],
    }
  },
  mounted() {
    this.$bus.$on('sendCourseInfo', (row) => {
      this.tableData = row.sysCourseTeamList
    })
  },
  beforeDestroy() {
    this.$bus.$off('sendCourseInfo')
  },
  methods: {},
}
</script>
<style scoped lang="scss">
.teachers {
  .teacher-item {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    .img-box {
      float: left;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      overflow: hidden;

      img {
        display: block;
        width: 100%;
        height: 100%;
      }
    }
    .txt-box {
      margin-left: 96px;
      height: 67px;
      font-size: 14px;
      color: #333;
      line-height: 18px;
    }
  }
}
</style>